{template 'common/header'}
<form action="" method="post" class="form-horizontal form" enctype="multipart/form-data" id="form1">
	
	<div class="panel panel-success">
		<div class="panel-heading">基本设置</div>
		<div class="panel-body">

			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label"> 活动标题 </label>
				<div class="col-sm-8">
					<input type="text" name="title" class="form-control" value="{$settings['title']}" />
				</div>
			</div>

			<div class="form-group">
		        <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 玩家坐骑 </label>
		        <div class="col-sm-9 col-xs-12">
		            {php echo tpl_form_field_image('playerpic',!empty($settings['playerpic'])?$settings['playerpic']:"../addons/$this->modulename/template/mobile/images/img/player.png");}
		        </div>
		    </div>

			<div class="form-group">
		        <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 加分logo </label>
		        <div class="col-sm-9 col-xs-12">
		            {php echo tpl_form_field_image('jflogo',!empty($settings['jflogo'])?$settings['jflogo']:"../addons/$this->modulename/template/mobile/images/img/food2.png");}
		        </div>
		    </div>

			<div class="form-group">
		        <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 障碍物logo </label>
		        <div class="col-sm-9 col-xs-12">
		            {php echo tpl_form_field_image('wxlogo',!empty($settings['wxlogo'])?$settings['wxlogo']:"../addons/$this->modulename/template/mobile/images/img/food1.png");}
		        </div>
		    </div>

			<div class="form-group">
		        <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 开始引导图 </label>
		        <div class="col-sm-9 col-xs-12">
		            {php echo tpl_form_field_image('adstartpic',!empty($settings['adstartpic'])?$settings['adstartpic']:"../addons/$this->modulename/template/mobile/images/img/startbg.png");}
		        </div>
		    </div>

			<div class="form-group">
		        <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 游戏背景图片 </label>
		        <div class="col-sm-9 col-xs-12">
		            {php echo tpl_form_field_image('bgpic',!empty($settings['bgpic'])?$settings['bgpic']:"../addons/$this->modulename/template/mobile/images/img/bg.jpg");}
		        </div>
		    </div>

			<div class="form-group">
		        <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 结束时背景图片 </label>
		        <div class="col-sm-9 col-xs-12">
		            {php echo tpl_form_field_image('endpic',!empty($settings['endpic'])?$settings['endpic']:"../addons/$this->modulename/template/mobile/images/img/endpage.jpg");}
		        </div>
		    </div>

			<div class="form-group">
		        <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 再玩一次图标 </label>
		        <div class="col-sm-9 col-xs-12">
		            {php echo tpl_form_field_image('morepic',!empty($settings['morepic'])?$settings['morepic']:"../addons/$this->modulename/template/mobile/images/img/replay.png");}
		        </div>
		    </div>

		    <div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label"> 分享按钮 </label>
				<div class="col-sm-8">
					<input type="text" name="fxbutton" class="form-control" value="{php echo !empty($settings['fxbutton'])?$settings['fxbutton']:"邀小伙伴吃月饼"; }" />
				</div>
			</div>

			<div class="form-group">
		        <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 分享图标 </label>
		        <div class="col-sm-9 col-xs-12">
		            {php echo tpl_form_field_image('fxlogo',!empty($settings['fxlogo'])?$settings['fxlogo']:"../addons/$this->modulename/template/mobile/images/img/weixin.png");}
		        </div>
		    </div>
		</div>
		
	</div>

	<div class="panel panel-success">
		<div class="panel-heading">基本设置</div>
		<div class="panel-body">

			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label"> 分享标题 </label>
				<div class="col-sm-8">
					<input type="text" name="sharetitle" class="form-control" value="{php echo !empty($settings['sharetitle'])?$settings['sharetitle']:"您在 #时间# 秒内抢到了 #月饼# 个月饼，超过了 #用户# 的用户"; }" />
					<span class="help-block">#时间#为游戏时间，#月饼#为吃的月饼数量，#用户#为超越的用户百分比</span>
				</div>
			</div>

			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label"> 分享描述 </label>
				<div class="col-sm-8">
					<input type="text" name="sharedesc" class="form-control" value="{$settings['sharedesc']}" />
				</div>
			</div>

			<div class="form-group">
		        <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 分享图标 </label>
		        <div class="col-sm-9 col-xs-12">
		            {php echo tpl_form_field_image('sharepic',!empty($settings['sharepic'])?$settings['sharepic']:"../addons/$this->modulename/icon.jpg");}
		        </div>
		    </div>

		</div>
	</div>

	<div class="form-group col-sm-12">
		<input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
		<input type="hidden" name="token" value="{$_W['token']}" />
	</div>
</form>
{template 'common/footer'}